import zhreq from "@/api/axios-agr-social";
export default {
  queryPageByCondition(params) {
    return zhreq.post("/system/databaseBackup/queryPageByCondition", params);
  },
  queryByCondition(params) {
    return zhreq.post("/system/databaseBackup/queryByCondition", params);
  },
  // 备份数据
  backupDatabase(params) {
    return zhreq.post("/system/databaseBackup/backupDatabase", params);
  },
  // 获取所有数据库及表
  getAllDatabaseAndTable() {
    return zhreq.get("/system/databaseBackup/getAllDatabaseAndTable");
  },
  // 数据异常维护(sql语句)
  maintenanceSql(params) {
    return zhreq.post("/system/databaseBackup/maintenanceSql", params);
  },
  // 数据异常维护(sql文件)
  maintenanceSqlFile(params) {
    return zhreq.post("/system/databaseBackup/maintenanceSqlFile", params.fd);
  },
};
